How to find Arithmetic Mean of a grouped data